package com.annotation.autowired;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AutoWiredConfigTest {

    public static void main(String[] args) {

        ApplicationContext applicationContext =new AnnotationConfigApplicationContext(AutowiredConfig.class);

        AutowiredService bean = applicationContext.getBean(AutowiredService.class);
        System.out.println(bean);
    }
}
